<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:text name="context.title"/></title>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript">
	$(document).ready(function(){
		$("._button").click(function(){
			if(!confirm('此操作可能需要较长的处理时间，并且确定之后不要刷新本页面！\n\n\n确定同步？')){
				return false;
			}
			var obj = $(this);
			obj.attr("disabled","disabled");
			obj.val("正在同步中..请稍微.");
			var id = obj.attr("name");
			$.post("sync-data!sync.action",{id:id},function(data){
				if(data!= ""){
					alert(data);
				}else{
					alert("同步成功");
				}
				obj.removeAttr("disabled");
				obj.val("同步");
				});
			});
		});
</script>
</head>
<body>
<br/>
<p align="center"><s:actionmessage theme="mytheme" cssClass="actionMessage"/></p>
<h1 class="title01"><img src="${ctx}/images/02_15.gif" width="45" height="42" class="fl"/>同步子系统用户信息</h1>
<fieldset class="fs_ys" style="width: 600px">
<legend>同步子系统用户信息</legend>
<table align="center" id="contentTable" class="table_ys tableColor" >
<tr>
	<th>子系统名</th>
	<th>最后同步时间</th>
	<th>同步</th>
</tr>
<s:iterator value="list">
	<tr>
		<td>${system_name }&nbsp;</td>
		<td><s:date format="yyyy年MM月dd日 HH:mm:ss" name="LAST_SYNC_DATE"/>&nbsp;</td>
		<td><input type="button" class="_button" value="同步"style="width: 70px" name="${id }" class="input_ys1"/></td>
	</tr>
</s:iterator>
</table>

</fieldset>
</body>

</html>